<%-- 
    Document   : checkoutUserSignIn
    Created on : 5 Jul, 2012, 1:03:28 AM
    Author     : Windows
--%>

<%@include file="/jsp/top.jsp"%>

<html>
    <head>

        <title>User Sign In</title>
    </head>
    <body>
        <div class="clear"></div>
        <table cellspacing="5px" width="100%" align="center">
            <tr>
                <td>
                    <table cellspacing="5px" width="100%" align="center">
                        <tr>
                            <td style="vertical-align: top;" width="20%">
                                <%@include file="/jsp/right.jsp" %></td>
                            <td style="vertical-align: top;" width="80%">
                                <table align="center" border="1" cellspacing="10px" width="100%">
                                    <tr>
                                        <td>
                                            <table align="center" border="1" cellspacing="10px" width="100%">
                                                <tr>
                                                    <td colspan="2" style="vertical-align: top;" align="center">
                                                        <img alt="" src="images/1black.png"/>User Information
                                                        <img alt="" src="images/pb_arrow.gif"/>
                                                        <img alt="" src="images/2grey.png"/>Address
                                                        <img alt="" src="images/pb_arrow.gif"/>                                                        
                                                        <img alt="" src="images/3grey.png"/>Payment & Delivery
                                                        <img alt="" src="images/pb_arrow.gif"/>
                                                        <img alt="" src="images/4grey.png"/> Place Order
                                                    </td>
                                                </tr>

                                                <tr>
                                                    <td >
                                                        <% if (Integer.parseInt((session.getAttribute("loginUserId").toString())) > 0
                                                                            && Integer.parseInt((session.getAttribute("loginRoleId").toString())) > 0) {%>
                                                        <logic:present name="userDetail" scope="request">
                                                            <div class="page-title"><h1>1. Signed In As <bean:write name="userDetail" property="userName"/> - <bean:write name="userDetail" property="emailId"/> </h1></div>
                                                        </logic:present>
                                                        <a href="">Sign In as Different User</a><br/>
                                                        <a href=""><img alt="" src="images/continue.png"/></a>
                                                            <%} else if ((Integer) session.getAttribute("loginUserId") > 0 && (Integer) session.getAttribute("loginRoleId") == 0) {%>
                                                            <logic:present name="guestEmail" scope="request">
                                                                <logic:notEmpty name="guestEmail" scope="request">
                                                                <div class="page-title"><h1>1. Signed In As Guest - <bean:write name="guestEmail"/></h1></div>
                                                                <a href="">Sign In as Different User</a>
                                                                <a href=""><img alt="" src="images/continue.png"/></a>
                                                                </logic:notEmpty>
                                                            </logic:present>
                                                            <logic:notPresent name="guestEmail" scope="request">
                                                            <ul>
                                                                <li>
                                                                    <div class="page-title"><h1>1. Please Sign In </h1></div>
                                                                </li>
                                                                <li>
                                                                    <html:form action="/userAccount" method="post">
                                                                        <div>
                                                                            <ul>
                                                                                <li>
                                                                                    Continue Without Password<br/>
                                                                                    <span>(You do not need to Register & Login)</span>
                                                                                </li>
                                                                                <li>
                                                                                    Email<em>*</em> : <html:text property="guestEmail"/>
                                                                                </li>
                                                                                <li>
                                                                                    Your order details would be send to this Email.
                                                                                </li>
                                                                                <li>
                                                                                    <a onclick="javascript: return signinGuest('./userAccount.do?action=signInGuest','userBean');">
                                                                                        <img alt="" src="images/continue.png"/>
                                                                                    </a>
                                                                                </li>
                                                                            </ul>
                                                                        </div>
                                                                    </html:form>
                                                                </li>
                                                                <li><hr/></li>
                                                                <li>
                                                                    <div>
                                                                        <ul>
                                                                            <li>
                                                                                I have a E Shop Account & Password
                                                                            </li>
                                                                            <li>
                                                                                [<a href="./userAccount.do?action=showUserLogin">Login</a>] to your account & checkout faster
                                                                            </li>
                                                                        </ul>
                                                                    </div>
                                                                </li>
                                                            </ul>
                                                        </logic:notPresent>
                                                        <%}%>
                                                    </td>
                                                </tr>
                                            </table>
                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td><%@include file="/jsp/footer.jsp" %></td>
            </tr>
        </table>
    </body>
</html>
